package com.ghck.server.model;

import java.util.Date;
/**
 * 亲友健康数据  <br>
 * t_friend_patient_event <br>
 * v1.0 2016-05-01
 */
 public class FriendPatientEvent extends BaseModel implements Comparable<FriendPatientEvent>{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//亲友ID t_friends表ID
 	//friend_id
	private Integer friendId;

 	//设备ID
 	//device_id
	private String deviceId;

 	//用户ID t_users 表ID
 	//user_id
	private Integer userId;

 	//数据类型Id dict_patient_event_category 表ID
 	//category_id
	private Integer categoryId;

 	//内容
 	//content
	private String content;

 	//UUID
 	//uuid
	private String uuid;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	//测量时间
 	//action_time
	private Date actionTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*亲友ID t_friends表ID
 	*friend_id
 	*/
	public Integer getFriendId() {
		return friendId;
	}
	
	/**
	*亲友ID t_friends表ID
 	*friend_id
 	*/
	public void setFriendId(Integer friendId) {
		this.friendId = friendId;
	}
	
	/**
	*设备ID
 	*device_id
 	*/
	public String getDeviceId() {
		return deviceId;
	}
	
	/**
	*设备ID
 	*device_id
 	*/
	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}
	
	/**
	*用户ID t_users 表ID
 	*user_id
 	*/
	public Integer getUserId() {
		return userId;
	}
	
	/**
	*用户ID t_users 表ID
 	*user_id
 	*/
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	/**
	*数据类型Id dict_patient_event_category 表ID
 	*category_id
 	*/
	public Integer getCategoryId() {
		return categoryId;
	}
	
	/**
	*数据类型Id dict_patient_event_category 表ID
 	*category_id
 	*/
	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}
	
	/**
	*内容
 	*content
 	*/
	public String getContent() {
		return content;
	}
	
	/**
	*内容
 	*content
 	*/
	public void setContent(String content) {
		this.content = content;
	}
	
	/**
	*UUID
 	*uuid
 	*/
	public String getUuid() {
		return uuid;
	}
	
	/**
	*UUID
 	*uuid
 	*/
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*测量时间
 	*action_time
 	*/
	public Date getActionTime() {
		return actionTime;
	}
	
	/**
	*测量时间
 	*action_time
 	*/
	public void setActionTime(Date actionTime) {
		this.actionTime = actionTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public int compareTo(FriendPatientEvent o) {
		if(o!=null && o.id!=null){
			return o.id.compareTo(id);
		}
		return 0;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	